export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  searchMenuSpan: 6,
  labelWidth: '105',
  searchLabelWidth: 105,
  viewBtn: true,
  selection: true,
  column: [
    {
      type: 'input',
      label: '主键ID',
      prop: 'id',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '唯一编码（用于关联附件）',
      prop: 'unid',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '创建人ID',
      prop: 'createId',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '创建人名称',
      prop: 'createBy',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '创建时间',
      prop: 'createTime',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '创建人属OU的ID',
      prop: 'deptId',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '创建人所属OU的全称',
      prop: 'deptFullname',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '最后修改人信息',
      prop: 'updateBy',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '最后修改时间',
      prop: 'updateTime',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '设备编号',
      prop: 'diviceNumber',
      span: 12,
      width: 135,
      search: true,
      rules: [
        {
          required: true,
          message: '请输入设备编号',
          trigger: 'blur'
        }
      ],
      maxlength: 64
    },
    {
      type: 'input',
      label: '资产编号',
      search: true,
      prop: 'assetNumber',
      width: 135,
      span: 12,
      rules: [
        {
          required: true,
          message: '请输入资产编号',
          trigger: 'blur'
        }
      ],
      maxlength: 64
    },
    {
      type: 'input',
      label: '名 称',
      search: true,
      prop: 'name',
      width: 135,
      span: 24,
      rules: [
        {
          required: true,
          message: '请输入名称',
          trigger: 'blur'
        }
      ],
      maxlength: 255
    },
    {
      type: 'input',
      label: '品牌型号',
      search: true,
      prop: 'model',
      width: 85,
      span: 12,
      rules: [
        {
          required: true,
          message: '请输入品牌型号',
          trigger: 'blur'
        }
      ],
      maxlength: 64
    },
    {
      type: 'input',
      label: '密级',
      search: true,
      prop: 'level',
      span: 12,
      rules: [
        {
          required: true,
          message: '请选择品牌型号'
        }
      ]
    },

    {
      type: 'tree',
      label: '所属部门',
      prop: 'belongtoId',
      dicUrl: '/admin/dept/tree',
      props: { label: 'name', value: 'id' },
      dicMethod: 'get',
      width: 135,
      display: false,
      hide: true,
      span: 12,
      rules: [
        {
          required: true,
          message: '请输入所属部门',
          trigger: 'blur'
        }
      ]
    },
    {
      type: 'input',
      label: '所属部门编码',
      prop: 'belongtoCode',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '所属部门名称',
      search: true,
      width: 135,
      prop: 'belongtoName',
      span: 12
    },
    {
      type: 'input',
      label: '所属部门全名称',
      prop: 'belongtoFullcode',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '所属部门全编码',
      prop: 'belongtoFullname',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '放置地点ID',
      prop: 'locationId',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '放置地点',
      prop: 'locationName',
      search: true,
      width: 115,
      span: 12
    },
    {
      type: 'input',
      label: '责任人名称',
      prop: 'principalName',
      width: 105,
      search: true,
      span: 12
    },
    {
      type: 'tree',
      label: '责任人',
      prop: 'principalId',
      dicUrl: '/admin/user/tree',
      props: { label: 'name', value: 'id' },
      dicMethod: 'get',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '责任人所属部门ID',
      prop: 'principalOuId',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '责任人所属部门全编码',
      prop: 'principalOuFullcode',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '责任人所属部门全名称',
      prop: 'principalOuFullname',
      display: false,
      hide: true,
      span: 12
    },
    {
      type: 'input',
      label: '系统版本',
      prop: 'systemVersion',
      width: 115,
      span: 12
    },
    {
      type: 'input',
      label: '系统安装时间',
      prop: 'systemInstallDate',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      width: 115,
      span: 12
    },
    {
      type: 'input',
      label: '硬盘序列号',
      width: 120,
      prop: 'diskSn',
      span: 12
    },
    {
      type: 'input',
      label: '设备序列号',
      prop: 'assetSn',
      width: 115,
      span: 12
    },
    {
      type: 'input',
      label: 'IP地址',
      prop: 'ip',
      width: 120,
      span: 12
    },
    {
      type: 'input',
      label: 'MAC地址',
      width: 145,
      prop: 'mac',
      span: 12
    },
    {
      type: 'input',
      label: '启用时间',
      prop: 'enableDate',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      width: 120,
      span: 12
    },
    {
      type: 'input',
      label: '使用情况',
      prop: 'useWay',
      search: true,
      span: 12
    },
    {
      type: 'input',
      label: '所属类型',
      prop: 'type',
      search: true,
      span: 12
    },
    {
      type: 'input',
      label: '用途',
      prop: 'assetUse',
      search: true,
      rows: 3,
      span: 24
    },
    {
      type: 'textarea',
      label: '备注',
      prop: 'remarks',
      overHidden: true,
      width: 160,
      span: 24
    }
  ]
}
